package com.boot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @Autor: Rolin
 * datetime: 05-07-18:33
 */
@RestController
@RefreshScope  //动态刷新配置
public class ConfigController {

    @Value("${config.info}")
    private String configInfo;

    @GetMapping("/nacos/config")
    public String test01(){
        return configInfo ;
    }
}
